/* Copyright 2021 The Chromium Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

.review-views {
  background: var(--grey-900);
}

.review-frame {
  align-items: center;
  border: 1px solid rgba(var(--grey-200-rgb), 0.38);
  bottom: calc(var(--bottom-line) * 2);
  display: flex;
  justify-content: center;
  left: calc(var(--left-line) * 2);
  position: absolute;
  right: calc(var(--right-line) * 2);
  top: 0;
}

.review-image,
.review-video {
  max-height: 100%;
  max-width: 100%;
}

.review-views .button-group {
  align-items: center;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  position: absolute;
  top: calc(100% - calc(var(--bottom-line) * 2));
}

.review-views .positive.button-group {
  right: calc(var(--right-line) * 2);
}

.review-views .negative.button-group {
  left: calc(var(--left-line) * 2);
}

.review-views .button-group button[i18n-text=label_share]::before {
  content: url(/images/review_share.svg);
  display: inline-block;
  line-height: normal;
  margin-inline-end: 5px;
  vertical-align: middle;
}

.review-views .review-intent-button-group {
  bottom: calc(var(--bottom-line) - 36px);
  display: flex;
  flex-direction: column;
}

.review-views .review-intent-button-group>button {
  height: 72px;
  margin-bottom: 2px;
  margin-top: 2px;
  width: 72px;
}

.review-views .review-intent-button-group button[i18n-label=confirm_review_button] {
  background-image: url(/images/camera_intent_result_confirm.svg);
}

.review-views .review-intent-button-group button[i18n-label=cancel_review_button] {
  background-image: url(/images/camera_intent_result_cancel.svg);
}
